/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.controller;

import java.io.IOException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.lehe.common.Contants;
import com.lehe.common.exceptions.LHException;
import com.lehe.dao.XHUserListDao;
import com.lehe.entry.UserInfoDto;
import com.lehe.entry.UserSessionDto;
import com.lehe.entry.xh.UserDto;
import com.lehe.service.impl.UserInfoService;
import com.lehe.wxpay.WXPay;
import com.lehe.wxpay.WXPayConfigImpl;
import com.lehe.wxpay.WXPayUtil;

/**
 *
 * @author 王丹
 * @since 2017-02-25
 */
@Controller
@RequestMapping("SpreadGameRegUser")
public class SpreadGameRegUser extends Basecontroller {

	@RequestMapping
    public String index(@RequestParam(value="UserID") String UserID) throws LHException {  
        return "redirect:https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxb0055562a8ee0a90&redirect_uri=http://mp.v80mall.com/index/regist/"+UserID+"&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect";
    }
}
